<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>数据库还原</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/admin/tpl/public/css/backup.css"/>
</head>
<body>
	<h2 class='top'><a href="<?php echo U('back');?>">备份数据库</a></h2>
	<table class='table2'>
		<thead>
			<tr>
				<th>备份日期</th>
                <th  width="300">操作</th>
			</tr>
		</thead>
		<tbody>
			<?php $hd["list"]["n"]["total"]=0;
if(!empty($tree)):
$hd_list_total = count($tree);
$hd_list_row = min($hd_list_total,1000);
$hd_list_row = floor($hd_list_row/1);
$hd_list_id=0;
$hd_list_start=1;
$hd_list_step=0;foreach($tree as $hd_list_key =>$hd_list_value):
if($hd_list_start<1){$hd_list_start++;continue;}
if($hd_list_step %1!=0){$hd_list_step++;continue;}
$hd_list_step++;$hd["list"]["n"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["n"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["n"]["index"]=$hd_list_id+1;
$n=$hd_list_value;?>

            <tr>
                <td>
                    <?php echo date('y-m-d h:i:s',$n['name']);?>
                </td>
                <td>
                    <a href="<?php echo U('recovery','dir='.$n['name']);?>">还原</a>
                    <a href="<?php echo U('del');?>" class="delback">删除</a>
                </td>
            </tr>
            <?php if($hd_list_id+1>=$hd_list_row){break;}
$hd_list_id++;
endforeach;
$hd["list"]["n"]["total"]=$hd_list_id+1;
endif;
?>
		</tbody>
	</table>
</body>
</html>